/**
 * Created by Administrator on 2016/12/30.
 */
(function($) {
    $.fn.extend({
        AutoSize: function() {
            var element = $(this);
            auto();
            function auto() {
                var width = $(window).width(),
                    height = $(window).height();
                $("html").css("font-size", width / 15);
                $(element).width(width).height(height);
            };
            $(window).resize(auto);
        }
    });
})(jQuery);